<template>
  <div key="id">
    <div class="mb-10">标题内容</div>
    <el-input placeholder="请输入题目标题" v-model="text" @update:modelValue="inputHandle" />
  </div>
</template>

<script setup>
import { ref, inject } from 'vue';
const props = defineProps({
  status: String,
  configKey: String,
  id: String,
});

const text = ref(props.status);
const updateStatus = inject('updateStatus',()=>{});

function inputHandle(newVal) {
  if (updateStatus) {
      updateStatus(props.configKey, newVal);
  }

}
</script>
